<body>
<div class=form_title><{$smarty.const.MI_USER_INFO}></div>
<form method='post'>
<{if !empty($user) }>
<input type='hidden' name='op' value='user_modify'>
<input type='hidden' name='rowguid' value='<{$user.0.rowguid}>'>
  <table width="50%" border='1' align="center" cellpadding='1' cellspacing='1' bordercolor="157fb9" class=form_detail>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_ID}></th>
      <td bordercolor="#cbe5f6"><{$user.0.user_id}></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th width="20%" nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_NAME}></th>
      <td width="80%" bordercolor="#cbe5f6"> 
        <input type='text' size="20" maxlength=50 name='user_name' value='<{$user.0.user_name}>'></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_LEVEL}></th>
      <td bordercolor="#cbe5f6"><{if !$is_last_one_admin}> <input type='radio' style='cursor: pointer;' name='user_level' value='0' <{if 
        $user.0.user_level==0}>checked<{/if}>><{$smarty.const.MI_USER_ADMIN}> <input type='radio' style='cursor: pointer;' name='user_level' value='1'  
        <{if $user.0.user_level==1}>checked<{/if}>><{$smarty.const.MI_USER_COMMON}> 
        <{else}> 
        <input type='hidden' name='user_level' value='0'>
        <{$smarty.const.MI_USER_ADMIN}> <{/if}></td>
    </tr>
  </table>  
  <br>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">
<input name="button" type='button' class='btn_modify' onClick='op.value="user_modify"; this.form.submit();' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_MODIFY}>" /> 
        <{if !$is_last_one_admin}> <input name="button" type='button' class='btn_del' onClick='op.value="user_delete"; this.form.submit();' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_DELETE}>" /> 
        <{/if}></td>
    </tr>
  </table>
  <{else}> 
  <input type='hidden' name='op' value='user_do_add'>
  <table width="50%" border='1' align="center" cellpadding='1' cellspacing='1' bordercolor="157fb9" class=form_detail>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_ID}></th>
      <td> <input type='text' size=20 maxlength=20 name='user_id' value=''></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_NAME}></th>
      <td> <input type='text' size=20 maxlength=50 name='user_name' value=''></td>
    </tr>
    <tr bordercolor="#cbe5f6"> 
      <th nowrap background='<{$theme_url}>/images/form_detail_pic03.jpg' style="color: black; font-size: 8pt; text-align: right; font-weight: bold;"><{$smarty.const.MI_USER_LEVEL}></th>
      <td> <input type='radio' style='cursor: pointer;' name='user_level' value='0'>
        <{$smarty.const.MI_USER_ADMIN}> <input type='radio' style='cursor: pointer;' name='user_level' value='1' checked>
        <{$smarty.const.MI_USER_COMMON}></td>
    </tr>
  </table>  
  <br>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><input name="submit" type='submit' class='btn_add' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_ADD}>&nbsp;" />&nbsp;<input name="button2" type='button' class='btn_uppage' onClick='location.href="<{$smarty.server.SCRIPT_NAME}>";' value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<{$smarty.const.MI_BACK}>" />
      </td>
    </tr>
  </table>
  <{/if}> 
</form>